/**角色操作模块 */
import axios from "../utils/request";

// 获取菜单列表
export const getRoleList = () => axios({
    url: "/api/rolelist",
    method: "GET"
})
//  新增菜单
export const addRoleList = (roleForm, controller) => axios({
    url: "/api/roleadd",
    method: "post",
    data: roleForm,
    controller
})
//  编辑菜单
export const editRoleList = (roleForm, controller) => axios({
    url: "/api/roleedit",
    method: "post",
    data: roleForm,
    controller
})
//  删除菜单
export const delRoleList = (id, controller) => axios({
    url: "/api/roledelete",
    method: "post",
    data: {
        id,
    },
    controller
})